<script>
import NavBar from "@/components/NavBar.vue";
</script>
<template>

  <div>
    <!--头部导航-->
    <!--<Header/>-->
    <!--主要内容显示 一级路由出口-->
    <div class="content">
      <RouterView #default="{ Component }">
        <!--生命周期-->
        <transition name="fade" >
          <component :is="Component" />
        </transition>
      </RouterView>
    </div>
  </div>
</template>
<script setup>
import {RouterView} from "vue-router";
import NavBar from "@/components/NavBar.vue";
/*import Header from "@/views/Header.vue";*/
</script>
<style scoped lang="scss">
</style>
<style>
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}
</style>
